Android Native Field
Type
widget
Summary
This widget is a native field on Android.
Description
This widget is a native field on Android.
Compatibility and Support
OS
android
Associated Syntax
Property
| Name | Summary | Syntax |
|---|---|---|
| multiline | Whether the field can contain multiple lines or not. | set the multiline of <widget> to {true | false} get the multiline of <widget> |
| textAlign | The horizontal text alignment of the field widget. | set the textAlign of <widget> to <pAlign> get the textAlign of <widget> |
| autoCorrectionType | The auto-correction behavior of the field widget. | set the autoCorrectionType of <widget> to <pType> get the autoCorrectionType of <widget> |
| selectedRange | The range of text of the widget that is selected. | set the selectedRange of <widget> to <pRange> get the selectedRange of <widget> |
| autoCapitalizationType | The auto-capitalization behavior of the field widget. | set the autoCapitalizationType of <widget> to <pType> get the autoCapitalizationType of <widget> |
| contentType | What kind of content the field contains. | set the contentType of <widget> to <pType> get the contentType of <widget> |
| verticalTextAlign | The vertical text alignment of the field widget. | set the verticalTextAlign of <widget> to <pAlign> get the verticalTextAlign of <widget> |
| returnKeyType | The type of action assigned to the return key on the keyboard associated with this field widget. | set the returnKeyType of <widget> to <pType> get the returnKeyType of <widget> |
| fieldTextColor | The color of the text of the field widget. | set the fieldTextColor of <widget> to <pColor> get the fieldTextColor of <widget> |
| scrollingEnabled | Whether the field can be scrolled or not. | set the scrollingEnabled of <widget> to {true | false} get the scrollingEnabled of <widget> |
| enabled | Whether the field is active and responds to user action | set the enabled of <widget> to {true | false} get the enabled of <widget> |
| passReturnKey | Whether the return key adds a new line to the field | set the passReturnKey of <widget> to {true|false} get the passReturnKey of <widget> |
| focused | Whether the field is focused or not. | set the focused of <widget> to {true | false} get the focused of <widget> |
| dataDetectorTypes | What types of data should be clickable in the field. | set the dataDetectorTypes of <widget> to <pType> get the dataDetectorTypes of <widget> |
| keyboardType | The type of keyboard associated to the field widget. | set the keyboardType of <widget> to <pType> get the keyboardType of <widget> |
| editable | Whether the field can be edited or not | set the editable of <widget> to {true | false} get the editable of <widget> |
| text | The text contained in the field widget. | set the text of <widget> to <pText> get the text of <widget> |
Message
| Name | Summary | Syntax |
|---|---|---|
| openField | Sent to an unlocked field when you click or select text in that field. | openField |
| closeField | Sent to a field when the focus is being removed from that field and the field's content has changed. | closeField |
| exitField | Sent to the field with the selection when the selection is being removed from the field, and its contents have not changed. | exitField |
| textChanged | Sent when the native field widget text is changed. | textChanged |